package com.coolrui.domain.xxljob;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class OrderJob {

    /**
     * 创建订单任务
     */
    @XxlJob("createOrder")
    public void createOrder() {
        log.info("创建订单任务调度成功！");
        XxlJobHelper.handleSuccess("创建订单任务调度成功！");
    }
}
